import { CHANGE_SIDE_STATE } from '../constants/mapConstants';

const initialState = {
  hideSide: false,
};

export default function webReducer(state = initialState, action) {
  switch (action.type) {
    case CHANGE_SIDE_STATE:
      return Object.assign({}, state, {
        hideSide: action.hideSide,
      });
    default:
      return state;
  }
}
